package com.example.demo.demos.web;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class TestController {
     @RequestMapping("/t1/{name}/{id}")
     void func(@PathVariable String name , @PathVariable int id){
         System.out.println(name + id);
     }

}
